package com.cl.ks.repository;

import com.cl.ks.entity.KsRule;
import com.cl.ks.entity.KsTableField;
import com.cl.mvc.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface KsRuleRepository extends BaseRepository<KsRule> {

    @Query(nativeQuery = true, value = "select * from ks_table_field where table_name=:tableName")
    List<KsTableField> getFields(String tableName);


}
